<template>
  <div class="search">
    <!-- 搜索盒子 -->
    <HeadTop :goback="myGoBack"></HeadTop>
    <div class="search-box">
      <div class="search">
        <van-search
          shape="round"
          v-model="searchVal"
          show-action
          placeholder="客户名称/联系方式"
          @search="onSearch"
        >
          <template #action>
            <div class="search-btn" @click="onSearch">搜索</div>
          </template>
        </van-search>
      </div>
    </div>
    <!-- 暂无 结果 -->
    <div class="is-no">
      <h2>暂无结果</h2>
    </div>
  </div>
</template>

<script>
import HeadTop from "../../components/common/HeadTop.vue";
export default {
  components: {
    HeadTop,
  },
  data() {
    return {
      myGoBack: { title: "查询", path: "/" },
      searchVal: "",
    };
  },
  methods: {
    onSearch() {
      console.log("确定搜索时触发");
    },
  },
};
</script>
 
<style lang = "less" >
.search {
  background: #f5f5f5;
}

.search-box {
  height: 100px;
  background: #fff;
  .search {
    height: 100px;
    .van-search {
      height: 100px;
    }
  }
  .van-field__control {
    line-height: 62px;
    height: 62px;
  }
  .van-search .van-cell {
    align-items: center;
    .van-icon-search {
      font-size: 32px;
    }
  }
  .van-field__control {
    margin-left: 12px;
    &::placeholder {
      font-size: 32px;
    }
  }
  .search-btn {
    color: #153399;
    font-size: 32px;
  }
}
.is-no {
  background: #fff;
  margin-top: 20px;
  font-size: 32px;
  color: #999999;
  padding-top: 450px;
  box-sizing: border-box;
  text-align: center;
}
</style>